package io.renren.modules.common;

import com.github.pagehelper.PageInfo;
import io.renren.common.pojo.Query;

import java.util.List;

public interface BaseCrudService<E extends BaseEntity> {

    List<E> queryList(Query query);

    PageInfo<E> queryPage(Query query);

    long queryTotal();

    E queryById(Integer id);

    E save(E entity);

    boolean delete(Integer id);

    boolean deleteBatch(Integer[] ids);
}
